A house previously owned by actor Gene Wilder is on the market in California. (MLS.com)

A house owned by late actor Gene Wilder and later tech billionaire Elon Musk — and that has gone back to the Wilder family — is for sale in California.

Overlooking the oceans in the Bel Air neighborhood of Los Angeles, the four-bedroom, four-bathroom residence hit the market in the past week with a nearly $13 million price tag, according to a listing on CoStar’s Homes.com.

Wilder’s nephew is the current owner and faces foreclosure, with Musk seeking repayment of a loan, according to media reports.

Aside from its celebrity connections, the listing has some luxurious features. It overlooks both the Bel Air Country Club golf course and the Los Angeles skyline; it has a pool and a sauna; it comes with a detached guest house; and it was designed by architect Robert Byrd, who is known for his work with Hollywood stars.

The “charming” house is “a rare opportunity to own a piece of Hollywood history while enjoying the prestige and serenity of Bel Air living,” listing agent Drew Meyers of Westside Estate Agency wrote in a description on Homes.com.

Gene Wilder, pictured in the movie “Willy Wonka and the Chocolate Factory,” owned the house from 1976 until 2007, according to public records. (Getty Images)

“For developers or those with a vision, this property represents a rare opportunity to reimagine a classic estate in one of Los Angeles’ most prestigious neighborhoods,” Meyers said in the listing description. “Whether preserving its historic charm or enhancing its potential with contemporary updates, this estate is a blank canvas for your dream project.”

Wilder, known for his roles in movies such as “Willy Wonka and the Chocolate Factory” and “Young Frankenstein,” purchased the property for about $300,000 in 1976, media outlets have reported. Public records show he sold the property in 2007; he died in 2016.

In 2013, Musk purchased the property for $6.75 million, according to public records. Then, in 2020, the Tesla and X CEO sold the house to Wilder’s nephew, filmmaker Jordan Walker-Pearlman, and his wife, Elizabeth Hunter, for $7 million. That sale reportedly included a $6.7 million loan from Musk. Public records show a loan of that same amount taken by a limited liability company linked to Hunter.

Though the house is now listed for sale, it’s also reportedly in the first steps of foreclosure: An entity linked to Musk took the first formal step in the foreclosure process in late July after the owners fell behind on payments on their loan from Musk, the Wall Street Journal reported.

“There’s no tragedy here,” Walker-Pearlman told the media outlet. “Elon gave us a magical opportunity. I have no complaints.”

Meyers didn’t respond to a request from CoStar News for more details.