Meghan Trainor revealed that she had to abandon her school in order to stop being sick.

The "All About That Bass" singer explained that when she was growing up, her parents decided to live in separate towns because of her deteriorating health.

Trainor was born and raised on the island of Nantucket, Mass., but when she realized her health was worsening due to the conditions at her school building, she, along with her mother and two brothers, moved nearly three hours away to Cape Cod, where she could attend another school, Hollywood.com reported.

In an interview with Boston radio station KISS 108, the singer-songwriter explained, "I was allergic to the school in Nantucket. I would cough all the time. It was the mold. When I moved to Cape Cod, they (other students) would ask, 'Why did you move here?' and I was like 'I was allergic to my school' and they were like, 'Oh you're crazy then, right?'

"We rented a house on the Cape and my mom took me and my brothers, so all went to school together. My parents had to live, basically like divorced, for seven years, but they're happily married so it was very difficult."