Prince Philip looks dapper at grandson Harry's royal wedding 6 weeks after surgery

Dapper as ever at 96 -- Prince Philip, what are your secrets?

The near-centenarian was in good spirits as he arrived at the royal wedding of his grandson, Prince Harry, and new granddaughter-in-law Meghan Markle.

His appearance comes just six weeks after the Queen's husband underwent a hip replacement surgery, a trying procedure that had many concerned he wouldn't be well enough for the big day. But after recuperating at home for more than a month, Philip was spotted at the Royal Windsor Horse Show last week looking chipper.

See photos of Prince Philip at the royal wedding:

Philip of course attended the nuptials alongside Queen Elizabeth, whom he wed more than 70 years ago at Westminster Abbey in London.

The royal family's exquisite weddings are a storied tradition in the United Kingdom, but Meghan Marke's uniquely American roots -- she's both a California native and a Hollywood actress -- made for a particularly star-studded ceremony. In addition to prominent royal and political figures, stars like Oprah Winfrey, George Clooney and Idris Elba were all spotted making their way into the church.

Check out all the arrivals in the gallery below: