It was a hard-fought election, but Democrat Barack Obama secured his second term as President of the United States.

The President posted this message following his victory:

Barack Obama ‏@BarackObama
We're all in this together. That's how we campaigned, and that's who we are. Thank you. -bo

He also tweeted this photo of himself being hugged by Michelle Obama with the caption "Four more years."

Hollywood is known for its left-leaning tendencies, and celebrities took to Twitter to express their joy and support.

Read the reactions from some of the biggest names in Hollywood:

Jennifer Lopez @JLo
@BarackObama We r in good hands!! A President for all Americans!! Congratulations Mr. President!!! Yay!! #latinopoder

Josh Hutcherson @jhutch1992
I feel the next 4 years will bring great things. I've never had this much hope for our country. well done America, well done.

Cried the first time he was elected and this time was just so surreal...never thought I'd see this in my lifetime. #GodBlessAmerica

Padma Lakshmi @PadmaLakshmi
Oh Happy day!! Obama Obama Obama all the way!!! And thank you to all those in Fla. who came to our rally and voted early!!!

Kirstie Alley @kirstiealley
Good morning!! Congratulations President Obama.. The people voted and you won it fair and square. Now let's get on with it. #JOBS

Ana Gasteyer @AnaGasteyer
What a great night. So many compassionate, humanitarian choices made across our complicated, diverse nation.

Michael Chiklis @MichaelChiklis
Let's all meet in the middle now & show the world what we can accomplish together. Intelligently, rationally, together with dignity & grace.

Zachary Quinto @ZacharyQuinto
going to sleep inspired fulfilled and called to action. so proud. so grateful. nowhere i would rather be. hope renewed. faith restored. 5am.

Kim Kardashian @KimKardashian
Just landed! anxiously awaiting to see who the next president would be! Heard the good news!!!! Congrats President Obama!!!!

Eva Longoria ‏@EvaLongoria
Me and my friends celebrating! I'm on tears! Moving the country forward!!! Obama!!!

Katy Perry ‏@katyperry

Cher ‏@cher

Mariah Carey ‏@MariahCarey
Congratulations to our beloved President Barack Obama, our spectacular First Lady Michelle Obama & the adorable Malia & Sasha. We love you!

Hugh Hefner ‏@hughhefner
While I was playing dominoes with the girls, we got the news that Obama had been re-elected. We're celebrating at the Mansion.

Justin Bieber ‏@justinbieber
alot of emotions right now. congrats President Obama...Im Canadian. Im good. #FreeHealthcare :)

Rob Thomas ‏@ThisIsRobThomas
Congrats to obama! Now let's all get back together as one country.

Nikki Reed ‏@NikkiReed_I_Am
America!!! We did it!!! #OBAMA!!!!!!!!

Mark Ruffalo ‏@Mruff221
Barack Obama wins because he has proven to be the better candidate and sold his policies and his record well to the American People.

RuPaul ‏@RuPaul
Condragulations @BarackObama Shantay U Stay!

Lea Michele ‏@msleamichele
Amazing election party tonight at @MrRPMurphy's house! And so glad we got to celebrate the re-election of OBAMA!!! #GObama

La Toya Jackson ‏@latoyajackson
Congratulations!!!! To our President!!!! #4 more years!!! The best man won!!!! Obama Obama Obama!!!!

olivia wilde ‏@oliviawilde
AMERICA! You have spoken! Women! You have been heard! Young people! You proved them wrong! Tireless Obama volunteers! I THANK YOU!

krysten ritter ‏@Krystenritter
"Obama for real They gotta put your face on the five-thousand dollar bill"

NeNe Leakes ‏@NeNeLeakes
I'am so proud to be apart of history again! #Obama

Phaedra Parks, Esq. ‏@PhaedraParks
The votes have been tabulated--OBAMA WINS!!!! Now back 2work America we have plenty issues 2resolve so lets work 2gether & get it done!

Ashlee Simpson ‏@ashleesimpson
4 more years!! #Obama

Nathan Fillion ‏@NathanFillion
Dear Obama, Don't say, "In your face!" We'll assume it's implied. Nathan

Amber Rose ‏@DaRealAmberRose
Obama Won!!!! Yay! I'm gonna get so wasted tonight! Lol just kidding ;-) #4MoreYears goodnight my Loves xoxo :-)

Brad Goreski ‏@mrbradgoreski
Yay! #Obama2012!! So excited for 4 more years of chic looks from Michelle Obama #firstladyfashion #icon

Destinee Hooker ‏@destineehooker
Congrats to Obama. Thank you Lord continue to be with him through this term.

Naya Rivera ‏@NayaRivera
OBAMA!!!! Can't wait for this speech. A BOSS always wins.

Barrack Obama still our president and still the people's Champion!

Shay Mitchell ‏@shaymitch
Yes!!! RT @nia_peeples: Congrats to our president #Obama. Lets commit our energy to healing, uniting and building our diverse nation.

Tracy McGrady ‏@Real_T_Mac
Congrats to President Barack Obama being re-elected for a 2nd term.

Pau Gasol ‏@paugasol
Congrats @BarackObama for being re-elected as President! Felicidades a Barack Obama por ser reelegido como Presidente! #Obama2012

jenelle evans ‏@PBandJenelley_1
OBAMAGIAN!!!! :] #4MoreYears :] #YES

Nigel Barker ‏@NigelBarker
Congratulations President @BarackObama here's to the next 4 years. Condolences Mitt Romney, hopefully we can work together for a better USA!

Janelle Monae ‏@JanelleMonae
Tears of joy. President Obama has 4 more years. America has spoken. We believe in @BarackObama.

regina spektor ‏@respektor
Thank you America!!! Thank you President Obama! Hopeful and excited for the future!!!

Aubrey O'Day ‏@AubreyODay
Can't buy your thoughts, our thoughts, or your way into office! Big Money isn't winning anymore folks! Tides r turning n this country!#OBAMA

towanda braxton ‏@towandabraxton
Jumping up and down SHOUTING!!!! Yaaaaaaaaaas!!!! #Obama!!!!

While Hollywood is known for its liberal tendencies, conservative celebrities also shared their reactions:

Donald J. Trump ‏@realDonaldTrump
Well, back to the drawing board!

Donald J. Trump ‏@realDonaldTrump
He lost the popular vote by a lot and won the election. We should have a revolution in this country!

Donald J. Trump ‏@realDonaldTrump
This election is a total sham and a travesty. We are not a democracy!

Farrah Abraham ‏@F1abraham
Mitt Romney won Popular vote. Sadly #Obama gets to completely ruin our economy Congrats!!! 

Meghan McCain ‏@McCainBlogette
Tough night for republicans, thanks to Mitt Romney for running hard and I give credit to President Obama for running a successful campaign.

Share your thoughts in the comments below!