Almost any species of tree can outlive several generations of humans and that is perhaps why the planting of trees is considered ceremonial by royal families from across the world - it is akin to a custom that carries forward their legacy for generations after generations.

When Kate Middleton and Prince William attended a tree planting ceremony at Rideau Hall in Ottawa on the third day of their royal tour of Canada in July last year, the couple stopped by a tree planted by William's late mother Princess Diana during her royal tour of Canada with Prince Charles in 1983.

The Duke and Duchess of Cambridge paid homage to the Princess of Wales as they reflected quietly by the side of the tree planted by her. The message was clear. While Diana will never be around for her son or meet her daughter-in-law, the tree she planted will remain eternal and, in that tree, some part of her survives, for many of her generations to come.

In a similar vein, the new royal couple took time plant a hemlock tree - one that symbolises everlasting love and marital harmony - near the one planted by Diana, which, unlike her marriage to Prince Charles, stood the test of time and has grown tall and strong. There were other hemlock trees around William and Kate's tree in Ottawa, including the one planted by William's father Prince Charles, along with his second wife Camilla, the Duchess of Cornwall, in 2009.

The ceremonial planting of trees is also a gesture of peace. Trees are planted across the world, to commemorate everything from the lessons to be learnt from the horrors of war to historical incidents and the killing of innocent people. An example of the latter is the tree planted the Spanish Crown Prince Felipe and his wife, Princess Letizia, during a ceremony in Madrid on 11 September, 2011, to mark the 10th anniversary of the 9/11 attacks on the World Trade Center in New York City.

More recently, the planting of trees was also an important part of the Queen's diamond jubilee celebration across the UK. To mark Her Majesty's 60 years on the throne, the Woodland Trust, UK's leading charity championing native woods and trees, aims at planting six million trees across the UK by the end of 2012. Princess Anne and the Queen herself laid the foundation of the trust's project by planting an oak at Sandringham Estate in Norfolk.

Scroll down to see the pictures of famous royals wielding a shovel to plant trees

Britain's Catherine, Duchess of Cambridge plants a tree after opening a children's hospice in IpswichReuters
Britain's Prince William watches as his wife Kate Middleton, Duchess of Cambridge wields a shovel to plant a tree at Rideau Hall in OttawaReuters
Britain's Prince William (L) and his wife Catherine, Duchess of Cambridge look at the tree planted by the Prince and the Princess of Wales in 1983 at Rideau Hall in Ottawa July 2, 2011.REUTERS
Catherine, the Duchess of Cambridge, uses a shovel as she plants a shrub during her visit with her husband Britain's Prince William to the Somba K'e Civic Plaza in Yellowknife, Northwest Territories, July 5, 2011.REUTERS/Phil Noble
Prince Charles plants a tree in celebration of the Diamond Jubilee of HM Queen Elizabeth II. The tree was planted on the first hole, aptly named “Birkhall,” the holiday home of High Royal Highness, on 25 April, 2012.BALLATER GOLF CLUB
Her Majesty The Queen plants a tree for Jubilee Woods, 3 February, 2012.The Woodland Trust
Spanish Crown Prince Felipe and Princess Letizia plant a tree during a ceremony in Madrid September 11, 2011, to mark the 10th anniversary of the 9/11 attacks on the World Trade Center in New York.REUTERS/Andrea Comas