Kate Middleton knows how to rock pants too.

Harper's Bazaar compiled several photos of the Duchess of Cambridge wearing trousers. Just like her sister-in-law Meghan Markle, Middleton knows well how to look good and maintain elegance in trousers. Here are the different times Middleton wear pants.

Middleton visited Slave Lake, Alberta in 2011. The Duchess arrived in a pair of skinny jeans, white top and espadrille sandals. She complemented her get up with a royal blue Smythe blazer.

On the same year, the Duke an Duchess of Cambridge were photographed joining the Calgary Stampede activities in Calgary, Canada. Middleton channeled her inner cowgirl in her dark wash jeans, Alice by Temperley blouse, cowboy boots, and a cowboy hat.

Middleton was also seen wearing a button-down shirt, blue jeans and loafers while boarding a boat in Yellowknife.

Prince William's wife knows how to blend colors, too. In 2012, she was seen wearing the Team Great Britain official scarf, coral Zara jeans and a navy Pucci blazer when she met the Great Britain Hockey team at the Riverside Area in London. In another engagement, she was seen wearing blue pants and a white shirt.

On the same year, Middleton was seen in skinny jeans, Le Chameau Vierzonord rain boots, sweater and cargo vest while visiting Expanding Horizon's Primary School in Wrotham, England.

Middleton stepped out again wearing the same boots with a brown moto jacket and dark jeans at the Golen Metropolitan Polo Club Charity Cup. She was photographed walking with a black dog running behind her.

Earlier this year, when Middleton made her final engagement before her maternity leave ahead of Prince Louis, she stepped out in black skinny pants, cream-colored coat by Goat and a printed top Hobbs. She accessorized with a black clutch and drop pearl earrings.

Many were surprised with her look as royals don't usually wear pants. In fact, Markle was criticized for preferring this wardrobe in her royal engagements. However, many also praise the Duchess of Sussex.

In fact, Markboostsost the sales for pants. The searches for black trousers increased by 40 percent at the beginning of the year when she stepped out in an Alexander McQueen pants in her evening debut.

Kate Middleton
Kate Middleton wears pants too like sister-in-law Meghan Markle. Pictured: Middleton hosts a reception for runners from Team Heads Together ahead of the 2017 Virgin Money London Marathon, at Kensington Palace on April 19, 2017 in London. Getty Images/Chris Jackson