Miranda Lambert changed the entire trajectory of her career and life when she scored her first No. 1 hit on June 12, 2010, but many fans might not be aware that the song wasn't even meant for her. In fact, it was originally pitched to her ex-husband, Blake Shelton.

Tom Douglas and Allen Shamblin wrote "The House That Built Me," and they worked for a long time to get it right, editing out some lyrics and adding the crucial line, "If I could just come in, I swear I'll leave / I won't take nothing but a memory."

They sent it to Shelton, who at that time was Lambert's boyfriend. She was present when he listened to it the first time, and the song touched on her personal history so deeply that she began to cry. She asked him if she could have the song to record instead, and the rest is history.

Rarely has a singer ever connected so strongly with a song they did not write, but in Lambert's case, "The House That Built Me" touched on themes that paralleled a period in her early life when her family was homeless before settling into an old, dilapidated farmhouse that really helped shape her view of the world.

RELATED: The 20 Best Miranda Lambert Songs Bring Heart, Hurt and Swagger

Her emotional rendition of the song was her fastest-breaking single and gave Lambert her first No. 1 hit on Billboard's Hot Country Songs chart, where it stayed for four weeks.

It won CMA Awards for Song and Music Video of the Year, ACM Awards for Song, Single Record and Video of the Year and a Grammy for Best Female Country Vocal Performance, and it's hard to imagine anyone other than Lambert doing the song justice in retrospect.

Sterling Whitaker is a Senior Writer and Senior Editor for Taste of Country. He focuses on celebrity real estate, as well as coverage of Yellowstone and related shows like 1883 and 1923. He's interviewed cast members including Cole Hauser, Kelly Reilly, Sam Elliott and Harrison Ford, and Whitaker is also known for his in-depth interviews with country legends including Don Henley, Rodney Crowell, Trace Adkins, Ronnie Milsap, Ricky Skaggs and more.

PICTURES: See Inside Miranda Lambert's Luxurious Nashville Mansion

Miranda Lambert's former mansion in an exclusive part of Nashville is gorgeous, and pictures reveal a stunning luxury home with gorgeous views. 

The 5-bedroom, 5.5-bathroom, 6,261-square-foot house in the Forest Hills section of Music City moist recently sold for $3.5 million.

Gallery Credit: Sterling Whitaker

PICTURES: See Inside Miranda Lambert's Rural Tennessee Estate

Miranda Lambert paid $3.4 million in 2016 for her rural estate an hour south of Nashville, which comprises 400 acres of lush green farmland. The property includes rolling hills, rustic living spaces and an enormous horse barn, as well as three residences, a lake with a boathouse and a six-bay garage. There are 75 acres of fenced-in pastureland, as well as lighted walking trails that wind through the woods leading to a pavilion, with seating for 60 for private concerts.

Gallery Credit: Sterling Whitaker