Anne Hathaway is mourning the loss of her friend and former director Garry Marshall.

Marshall died on Tuesday evening of complications from pneumonia following a stroke at a hospital in Burbank, California. He was 81.

Get push notifications with news, features and more.

Hathaway, 33, starred in her first motion picture at age 15 when she landed the role of Mia Thermopolis in the Marshall-directed Disney classic The Princess Diaries in 2001.

“Garry was goodness itself. He was generous. He was kind beyond kind. He was thoughtful and sweet and so funny you would pee yourself a little,” Hathaway wrote in a tribute on social media along with a black and white photo of Marshall and Julie Andrews. “I met him when I was a child who thought she was a grown-up; he treated me with grace and patience and respect and always, always love.”

Following news of Marshall’s death, the mother of one texted her Princess Diaries costar Heather Matarazzo. Both actresses reprised their roles in the 2004 sequel. Hathaway would go on to be a member of the star-studded cast of Valentine’s Day, which Marshall directed in 2010.

RELATED VIDEO: Celebrate Garry Marshall’s Most Iconic Movies and TV Shows With us

“I’m so happy I made three films with him. I’m so happy he blessed my son in my belly the last time I saw him (we never think it will be the last time),” Hathaway continued in her post.

“Before we made the Princess Diaries, he told me ‘You never know if a movie is going to be a hit or not. The only thing you can control is the memories you make when shooting it. So, let s make some good memories.’ That advice changed my life even more than the film did.”