(CNN) Miley Cyrus and Liam Hemsworth lost their home to a California wildfire, but the famous couple have their sights set on rebuilding not just their house but also their community.

Cyrus and Hemsworth have donated $500,000 to The Malibu Foundation through Cyrus' charity, Happy Hippie, a representative said.

The funds will be used for "those in financial need, emergency relief assistance, community rebuilding, wildfire prevention and climate change resilience," according to a statement.

Earlier on Tuesday, Hemsworth shared a striking photo of their home's remains.

It's been a heartbreaking few days. This is what's left of my house. Love. Many people in Malibu and surrounding areas in California have lost their homes also and my heart goes out to everyone who was affected by these fires.



To help: https://t.co/YQCE1cLaej & @happyhippiefdn pic.twitter.com/vtLFytFmNw — Liam Hemsworth (@LiamHemsworth) November 13, 2018

"I spent the day in Malibu yesterday and it was amazing to see the community pulling together to help each other out in any way they can," he wrote on social media. "Malibu is a strong community and this event is only going to make it stronger."

Read More