BERKELEY (CBS/AP) — The two lawyers who teamed up to defeat California’s same-sex marriage urged future members of their profession to take a lesson from their unlikely alliance.

Theodore Olson and David Boies were the keynote speakers at UC Berkeley School of Law’s graduation ceremony on Saturday.

READ MORE: Hung Jury In Trial of Danville Deputy Andrew Hall Over Laudemer Arboleda Killing; Guilty On Gun Assault

Before they joined forces in 2009 to challenge California’s Proposition 8, they were known for their respectively fierce advocacy in Bush v. Gore, the disputed 2000 presidential election case eventually won by Olson on behalf of George Bush.

Olson said lawyers need to respect their opponents if they want to prevail.

READ MORE: 3 Palo Alto Animal Shelter Employees Charged Over Puppy Deaths During Transport

The Berkeley law alumni told the graduates he recognized Boies’ poise and talent even when they were rivals.

Boies agreed, saying their partnership was proof that “if you can find common ground, you can accomplish great things.”

MORE NEWS: UPDATE: Pleasant Hill In-N-Out Burger Shut Down for Repeatedly Defying COVID Health Order

© Copyright 2014 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.