Answer
Barack Obama was the president when John Paul Stevens retired. Stevens retired on June 29, 2010, at the age of 90. He had served on the Supreme Court for 34 years, longer than any other justice in history. Stevens was a liberal justice who was known for his strong support of civil rights and individual liberties.