When Gene Roddenberry wrote the line “Live long and prosper,” which debuted in the Season 2 opener of his iconic 1960’s TV series “Star Trek,” little did he know that it would be a self-fulfilling prophecy. The series may have run from only 1967 to 1969, but its legacy lives on, spawning a movie franchise and several TV spin-offs. Generations of “Trekkies” all over the world scramble to snag collectibles, and one of the best may be the house where a Season 3 episode of “Star Trek: The Next Generation” was filmed.

The Malibu, Calif., home is on the market for $5,695,000, according to TopTenRealEstateDeals.com.

The series, set in the 24th century, aired from 1987 to 1994. One of the stars in Season 3 was this playfully eclectic, European-style contemporary, which was where Commander William Riker (Jonathan Frakes) and a rescue party from the USS Enterprise answer a distress call coming from a seemingly deserted planet. In “The Survivors” episode, they find two people who appear to have miraculously survived a disaster that claimed the lives of the rest of the population. The house and grounds appear much like they do today, but the magic of film showed a vast wasteland surrounding the property.

Designed by futuristic architect/artist and furniture designer Ellis David Gelman, the eye-popping wedge-shaped house features circular and triangular windows, as well as dramatic angles. Sited on two acres on the Pacific Coast Highway, the four-bedroom, four-bath home features an open floor plan, including a living area with spectacular views and a high wood-clad ceiling, according to the listing. The home has a media/family room with a kitchenette, a loft, a 440-square-foot terrace with a glass railing that doesn’t disrupt the ocean view, two fireplaces, slate and bamboo flooring, a sound system, a two-car garage, built-ins, and a kitchen with a breakfast bar and stone counters. The property also offers parking for 10 vehicles, a guest house, lavender and rose gardens, and an enclosed patio for dogs. The listing does not give the home’s square footage.

The listing agent is Ani Dermenjian of Coldwell Banker Residential Brokerage in Malibu. You can see a video of the property and a clip from the episode on her website: www.come2malibu.com.

View additional photos of the home:

Previous -- of -- Next Advertisement

Subscribe to the Globe’s free real estate newsletter — our weekly digest on buying, selling, and design — at pages.email.bostonglobe.com/AddressSignUp. Follow us on Facebook and Twitter @globehomes.