The Kardashians' hometown of Calabasas was put under mandatory evacuation on Sunday as two wildfires burned near Los Angeles.

Kourtney Kardashian's house was pictured covered in flame-retardant chemical Phos-Cheek in the hopes of keeping the blaze at bay, days after Kim's Range Rover was spotted driving away from the same neighborhood loaded up with boxes.

Meanwhile Robin Thicke, Gerard Butler and Miley Cyrus all revealed they lost their homes to the blazes, which have killed 31 people across the state.

Somehow Lady Gaga's mansion escaped being torched in the Woolsey fire despite being located in badly-hit Malibu, while the flames were bearing down on Simon Cowell's property late on Sunday night.

Caitlyn Jenner's house was also among those spared by the fire, TMZ reported, despite scorch marks being visible at the perimeter fence.

Scroll down for video

The area covered by the Woolsey fire is shown in red on the right, while the Hill fire is in red on the left. Celebrities affected by the fire include: 1) Gerard Butler, whose house was destroyed; 2) Miley Cyrus, house destroyed; 3) Robin Thicke, house destroyed; 4) Lady Gaga, who has been evacuated; 5) Will Smith, evacuated; 6) Simon Cowell, evacuated; 7) Caitlyn Jenner, evacuated; 8) Kim and Kanye, evacuated

Kourtney Kardashian's neighborhood in Calabasas was coated with Phos-Cheek, a red flame-retardant chemical, in the hopes of protecting it from the blaze

Kendall Jenner, Khloe Kardashian, Kim Kardashian West, Kris Jenner, and Kourtney Kardashian accepted a reality TV award on Sunday night, dedicating the win to crews battling the blazes

Gerard Butler was among those celebrities able to return to their homes on Sunday after being evacuated, only to find it destroyed

Butler shared photos of the destruction on his Instagram, showing that almost none of his property remains standing

Robin Thicke's home was also completely destroyed by the fire, leaving nothing more than a pile of rubble and ash behind

April Love Geary, Robin Thicke's girlfriend, revealed on Sunday that their $2.4million mansion had burned to the ground

In total 170,000 people have been evacuated from the Los Angeles area as the Woolsey fire burned largely out of control, while the Hill fire also raged nearby.

A statement from Calabasas city manager Gary Lysik said: 'All persons withing the City of Calabasas must now evacuate.

'For your safety, and the safety of your family, please collect necessary personal items and evacuate the city as quickly as possible, and please follow instructions provided by Law Enforcement.'

Kim Kardashian and her three children were given just one hour to evacuate her home on Friday.

The reality TV star had flown back from San Quentin jail, where a death row inmate she is campaigning to have released is being held, when she was told to quickly flee the devastating blazes.

As the 38-year-old came into land in her private plane she took aerial videos and pictures of the flames spreading around the around Los Angeles and Ventura County.

The star has asked her fans to 'pray for Calabasas'.

Kim was told that flames hit her Hidden Hills home but had been contained. The 15,000 sqft estate is thought to be worth around $20million.

Reality star Kim Kardashian has her Range Rover packed with belongings in boxes as she heads to the Bel Air Hotel

Under control: Kim revealed on Friday that the fire had reached her home but was now 'more contained' and seemed to be under control

Kim posted an Instagram story from her private plane as she touched down in California of wildfires raging through the county

Kourtney Kardashian shared an Instagram story of her belongings in the back of her car as she headed off to sister Kendall's house while she was away in New York

Khloe and Kourtney were also among those in the Kardashian clan that had to leave their homes this week.

Khloe said she had left her house with just the 'clothes on my back'.

'But I packed True's entire bedroom and closet into my car, obviously she's all that matters to me,' added the new mom, referring to her seven-month-old daughter.

Khloe revealed that she and daughter True were staying with Rob Kardashian and his daughter, Dream, who live near mom Kris Jenner, but were not forced out of their home.

Kourtney left her Calabasas home and posted an Instagram picture of suitcases in her car as she went to stay with sister Kendall Jenner's house in Beverly Hills and joked she was raiding her pantry for food.

She wrote alongside the picture: 'I pray that everyone is kept safe and protected from these fires. No Calabasas tonight.'

Kris Jenner's upmarket Hidden Hills neighborhood was evacuated, but she was also not at her $9.9m home as the drama unfolded as she was watching daughter, Kendall, take to the catwalk and star in the Victoria Secrets fashion show in New York.

Kylie was not in California at the time as she was supporting boyfriend, Travis Scott, at his Astroworld tour in Baltimore, Maryland.

Other celebrities affected by the devastating blazes include April Love Geary, Thicke's girlfriend, who revealed on Sunday that their $2.4million mansion had burned to the ground.

The 23-year-old model posted a photo of what appeared to be the gate at their home on her Instagram story. There was also some debris in the driveway.

'Our house is gone,' Geary captioned the photo.

Thicke had posted a video of him and Geary evacuating with their eighth-month-old daughter on Friday, saying they were 'in the middle' of the fire

Thicke also later posted a photo of his eight-year-old son, who he shares with Paula Patton, visiting his father Alan Thicke's grave following the evacuation

Earlier she had shared an image of smoke clouds in the neighborhood, writing: 'Our house is somewhere in there. I'm so sad but so thankful that we all made it out safe.'

'Praying for everyone in Malibu, our home is up in flames.'

Thicke had posted a video of him and Geary evacuating with their eighth-month-old daughter on Friday, saying they were 'in the middle' of the fire.

'This is us going north instead of south on the PCH to get away from the fire,' he said as he filmed the freeway and smoke-filled sky. 'Look at this, it is gnarly.'

Thicke also later posted a photo of his eight-year-old son, who he shares with Paula Patton, visiting his father Alan Thicke's grave.

'Went to visit Grandpa. Count your blessings!' he wrote in the caption.

In his most recent photo, Thicke posted a picture of his son on the beach. The caption read: 'Contemplating next move...'

Gerard Butler returned to his Malibu home on Sunday to find that it had also been burned to the ground.

The Scottish star posted a selfie that showed the charred remains of his home and truck in the background.

'Returned to my house in Malibu after evacuating,' he wrote. 'Heartbreaking time across California. Inspired as ever by the courage, spirit and sacrifice of firefighters.'

Miley Cyrus also took to Twitter on Sunday to reveal that her home had been destroyed. 'Completely devestated (SIC) by the fires affecting my community. I am one of the lucky ones. My animals and LOVE OF MY LIFE made it out safely & that’s all that matters right now.

'My house no longer stands but the memories shared with family & friends stand strong. I am grateful for all I have left. Sending so much love and gratitude to the firefighters and LA country Sheriff’s department! If you are interested in getting involved see next tweet.... Donate $ , Time , Supplies I love you more than ever, Miley.'

Camille Grammer also revealed on Sunday that she had lost her home, saying it 'couldn't be saved'.

Grammer, who posted a picture of her mansion up in flames, said firefighters were still able to save her cars and personal items.

'I thanked the fire captain and his team of firemen for all of their hard work,' Grammer wrote in the caption.

Miley Cyrus also took to Twitter on Sunday to reveal that her home had been destroyed

A file photo of Cyrus' home in Malibu with it's huge swimming pool is seen above

The exterior of Miley Cyrus home is seen above on Sunday. Cyrus said her home was destroyed. An out building near the property which escaped unscathed is seen above

Earlier Geary had shared an image of smoke clouds in the neighborhood, writing: 'Our house is somewhere in there. I'm so sad but so thankful that we all made it out safe'

In his most recent photo, Thicke posted a picture of his son on the beach. The caption read: 'Contemplating next move...'

'He took the time to explain what happened and I'm grateful for all of their hard work trying to save my home.'

'Sad we lost our home but grateful that my family is safe. Luckily we quickly evacuated our house yesterday after a patrol car drove up the street announcing mandatory evacuations.'

'I'm grateful for my lovely neighbors and friends who kept me informed and for their help this evening. Thank you all for caring.'

Camille Grammer also revealed on Sunday that she had lost her home, saying it 'couldn't be saved' and posting a picture of it up in flames

Doctor Strange director Scott Derrickson also lost his home in the blaze this weekend. He posted photos of what was still left standing on Saturday

Actress Blanca Blanco told DailyMailTV that she saw her home burn down on live television

She also documented the smoke clouds as she tried to leave Malibu

It was hard for most residents to breathe as they sat for hours on the Pacific Coast Highway

Doctor Strange director Scott Derrickson also lost his home in the blaze this weekend.

'We lost our home, but we are all safe and that's the important thing,' he tweeted on Saturday, including some pictures of his scorched house.

'I'm not trying to be optimistic about losing literally everything - I'm just not materialistic by nature,' he added in a separate tweet.

'To me it's just stuff. It's harder for my boys, losing items that have profound memory meaning. But this loss and whipsaw change will become a source of growth for all of us.'

Derrickson later shared the words his friend, German director Wim Wenders, told his 15-year-old son following the heartbreaking news: 'Hold on to your memories, no one can burn them.'

Lady Gaga also revealed on Saturday that her house had been spared during the wildfires

Director Guillermo del Toro revealed on Saturday that his house - and the 700-piece collection of horror memorabilia inside it - was safe

Will Smith posted a video to his Instagram story expressing worry that his own home would be hit by the flames as the path of destruction continues

Actress Blanca Blanco told DailyMail.com that she saw her home burn down on live television.

Blanco had escaped to Camarillo with her husband, Deer Hunter actor John Savage, and was sitting in a restaurant when she saw her house on the news.

'I glanced at the TV screens and my house was being burned,' she said. 'Slow motion. Crazy. I cried but reminded myself I escaped the fire and my family is safe.'

'I will start from scratch, but am feeling blessed I was given an opportunity to do it.'

In Agoura Hills, the Woolsey Fire destroyed Paramount Ranch, the set of HBO's Westworld and many other western films and shows.

HBO said that no cast or crew were at the Paramount Ranch location when it burned down.

Alyssa Milano updated fans on Saturday to let them know her house was still standing and that her five horses were safe

She had earlier written that she didn't know if her house would make it but that 'everything with a heartbeat is safe'

Rainn Wilson, who is currently overseas, said his animals had been rescued and his house 'barely spared'

Among the films that have been shot at the ranch are Caught in the Draft with Bob Hope, The Lake House with Sandra Bullock, and TV shows including The Mentalist, Weeds and Quickdraw.

Caitlyn Jenner's Malibu mansion just narrowly missed the blaze.

Just two days after evacuating their Malibu home when the Woolsey Fire got too close, Jenner and her partner Sophia Hutchins are back home.

Jenner, 69, and Hutchins, 22, took to Instagram with a new video, revealing they're back home, safe and sound, with their dogs Baxter and Bertha.

While their Malibu home was unscathed, they showed that the hills behind their home were 'scorched.'

Back home: Caitlyn Jenner revealed a new video with partner Sophia Hutchins, revealing they are both back in their Malibu home, that was unscathed by the Woolsey Fire

'OK, quick update,' Jenner began her video update. 'We finally made it back to the house. Sophia is here yay our house made it.

Hutchins was holding their puppy Baxter, waving his paw, as Jenner continued, saying, 'There's Baxter,' before turning the camera to show that her dog 'Bertha made it' as well.

'But anyway, it was devastating out here in Malibu. You can see the hills are just totally scorched,' Jenner said, with Hutchins adding, 'They're fried.'

Hutchins added, 'We're thinking of everyone and praying for everyone, hoping you're all safe with your loved ones.

Jenner concluded the video by saying, 'We're very, very lucky,' before Jenner and Hutchins both said, 'Bye' to their fans.

Rainn Wilson, who is currently overseas, said his animals had been rescued and his house was 'barely spared'.

'The fire roared down the creek bed behind our house and missed it by a dozen yards!' he tweeted.

Alyssa Milano also updated fans that her house was still standing and that her five horses were safe.

Actor James Wood had previously helped the distressed Milano put out the word about her horses.

'Everything with a heartbeat is safe,' Milano wrote in one tweet. 'Thank you all for your concern.'

'To those who insisted on still being hurtful because our political affiliation is different, you are what is wrong with the country,' she added.

Cher tweeted that she was 'worried' about her house but knew there was nothing she could do

Shannon Doherty found out her home was in the evacuation zone only after she landed back in Los Angeles

Pierce Brosnan and his family also had to evacuate during the weekend. They took their mind off the fire with a trip to the movies

Director Guillermo del Toro also found out his beloved Bleak House, which holds his collection of more than 700 pieces of fantasy and horror memorabilia, is still safe.

'As of late yesterday, Bleak House was still standing,' he tweeted. 'We drove through backstreets for almost 2 hours to get there and retrieve my notebooks and a small suitcase with 2 photos, 5 books and few small things.'

Lady Gaga's home was also unscathed in the blaze.

'I'm so grateful I love you and god bless you to all the firefighters and first responders who continue fighting this fire,' she tweeted on Saturday.

'You risk your lives for us, and I'm so humbled by your bravery. You are our heroes.'

Paramount Ranch, where a number of Hollywood westerns have been filmed, is seen after it was decimated by a wildfire

The church from The Western Town studio at Paramount Ranch is unscathed after the set was almost completely destroyed

Also among the evacuees were Cher, Shannon Doherty, and Real Housewives of Beverly Hills star Kyle Richards.

Cher tweeted that she was 'worried' about her house but knew there was nothing she could do.

'Friends houses have burned I can't bear the thought of there being no Malibu I've had a house in Malibu since 1972,' she wrote.

Doherty found out her home was in the evacuation zone only after she landed back in Los Angeles.

'I have no idea if we will have a home left standing,' she wrote on Instagram on Saturday.

The Woolsey fire and Northern California's Camp Fire (pictured) have killed 25 people total

'It's looking not likely but I'm so grateful that they people I love are safe and my dogs and horse are safe. I'm grateful for the firefighters putting their lives on the line for all of us.'

'My heart goes out to each and every person who is displaced, who lost their homes, lost a loved one and I pray for us all.'

Pierce Brosnan and his family were also displaced during the weekend.

The 65-year-old was spotted with his wife and kids at the mall trying to make the best out of a bad situation on Sunday with a trip to the movies.

Brosnan was with his wife Keely, 55, and their two sons Dylan, 21, and 17-year-old Paris.