Five minutes before midnight on June 30, movers hauled the last boxes from a spectacular rented home in the Oakland Hills. The tenant’s lease was about to expire, and in his haste to get out, he left behind thousands of dollars of damage to the hardwood floors and Venetian plastered walls.

The tenant was Mark G. Yudof, president of the University of California. His midnight move was the latest chapter in a two-year housing drama that has cost the university more than $600,000 and has drawn senior U.C. officials into an increasingly time-consuming and acrimonious ordeal over the president’s private residence.

The effort to resolve Mr. Yudof’s housing problems has taken place while the U.C., the nation’s largest and most prestigious public university system, struggles with one of the worst financial crises in its history, including layoffs, student protests and tuition increases.

After six years as chancellor at the University of Texas, Mr. Yudof arrived here in 2008, vowing to bring fiscal responsibility to the 10-campus U.C. system. He chose not to live at university-owned Blake House, the traditional presidential mansion, which the university estimates requires $10 million of renovations and repairs.