LONDON: If all the world’s a stage, William Shakespeare is its architect.

The playwright died 400 years ago Saturday, but remains the world’s most famous writer, living on through endlessly reinterpreted plays and globally known characters, including the tormented prince Hamlet and the star-crossed lovers Romeo and Juliet .

President Barack Obama on Saturday opened his overseas trip’s last full day in London by taking in a performance cribbed from William Shakespeare’s Hamlet, including portions of the prince of Denmark’s famous “To be or not to be” soliloquy.

The performance was part of Obama’s tour of the Globe theater — his way of partaking in the widespread commemorations of the Bard on the 400th anniversary of the playwright’s death.

The stop at the Globe, a replica of the circular, open-air playhouse that the author of such tragedies as “Hamlet,” “Macbeth” and “Romeo and Juliet” designed in 1599, rounded out a busy week for the president. He later dined with Princes William and Harry in London and reflected on the death of pop’s Prince.

Obama on Saturday declared stripped-down version of famous play, performed by actors in street clothes, “wonderful.”

Obama next stop was town hall-style event with young people. He was also slated to meet with Labour Party leader Jeremy Corbyn. The president was capping the night at a dinner with Prime Minister David Cameron and US Ambassador Matthew Barzun at the envoy’s government residence.

The president, accompanied by his wife, Michelle, bookended his Friday with a blitz of royal engagements during what is likely his final visit to England as president: a birthday lunch at Windsor Castle with Queen Elizabeth II, who turned 90 this week, and dinner with her grandsons, Princes William and Harry, and William’s wife, Kate, at Kensington Palace.