Hillary Clinton penned a touching letter to an eight-year-old girl who lost her class election by one vote - it has emerged.

According to CNN, the former Presidential candidate took time out of her busy schedule to console Martha Kennedy Morales, a third grader at a Maryland private school.

After hearing about her narrow defeat through Martha's father's Facebook account, Clinton sent her a message telling the little girl 'it's not easy to run for a role that's only being sought by boys'.

Clinton wrote the heartfelt letter on December 6 after hearing about Martha's election defeat two weeks earlier

Martha Kennedy Morales (pictured), a third grader at a Maryland private school, lost by just one vote to a male candidate

'While I know you may have been disappointed that you did not win President, I am so proud of you for deciding to run in the first place,' Clinton wrote in her letter.

'As I know too well, it's not easy when you stand up and put yourself in contention for a role that's only been sought by boys,' she added.

'The most important thing is that you fought for what you believed in, and that is always worth it.'

Martha said she was extremely touched to have received the letter and said it 'doesn't happen every day'.

'It was really touching to know that Hillary Clinton herself sent me a letter,' Martha told CNN. 'That doesn't happen every day.'

'It's disappointing to figure out that you lost something that you fought for really hard and you put a lot of effort into it,' she said

Martha told CNN she was 'extremely excited' to receive Clinton's letter and the former Presidential candidate said she heard about Martha's narrow defeat through her father's (left) Facebook posts

Despite Martha's disappointment, the budding politician did manage to clinch the title of vice president, and says she will stand for president again in the future.

Martha also has plans to invite Clinton to visit her class government over the coming weeks.

Clinton spokesman Nick Merrill later confirmed that the letter is authentic.

The former First Lady and Democrat candidate in the 2016 election, Clinton has taken a step away from politics since her bitter defeat to Donald Trump.

She was recently pictured attending the star-studded wedding of the daughter of one of India's richest men, Mukesh Ambani, in Udaipur, India.