Khosla, who made his fortune as one of the co-founders of Sun Microsystems and as a venture capitalist, bought property surrounding Martins Beach in 2008 for $37 million, according to NPR, and closed the beach to the public the year after.

Since then, he has been locked in a series of legal battles over whether the public can access the shore. Before Khosla bought the property, there was a gate and parking area permitting access to the beach, which was a well-liked surf spot.

California's First District Court of Appeals in San Francisco ruled 3-0 that Khosla violated state law when he blocked the public from accessing Martins Beach, rejecting Khosla's appeal.

The court ordered Kholsa's companies to pay the attorney costs for the Surfrider Foundation, the group that had brought the legal challenge over the beach.

But the battle isn't over yet — Khosla can still appeal, and other lawsuits over access to the beach are still pending.