Author Elizabeth Gilbert has just revealed an alternate ending to her novel "Eat, Pray, Love."

Gilbert, 47, took to Facebook on Wednesday to share the real reason behind her split with businessman husband José Nunes — who was detailed in the "Love" chapter of her book — in July, noting she has fallen in love with her longtime female best friend, Rayya Elias.

"I do not merely love Rayya; I am in love with Rayya," Gilbert wrote in a Facebook post. "And I have no more time for denying that truth."

Elizabeth Gilbert revealed the real reason she and her husband split: she fell in love wtih her best friend Rayya Elias.

(Evan Agostini/ASSOCIATED PRESS)

Gilbert said she realized the pair was more than best friends when Elias was diagnosed with pancreatic and liver cancer this spring.

"For those of you who are doing the math here, and who are wondering if this situation is why my marriage came to an end this spring, the simple answer is yes," she wrote. "Here is where we stand now: Rayya and I are together. I love her, and she loves me. I'm walking through this cancer journey with her, not only as her friend, but as her partner."

Gilbert explained that her reason for taking the relationship with her friend of 15 years public was to live a life of transparency.

The author ended her post by asking for any leftover love from her readers, along with a picture of she and Elias smiling.

Authors Elizabeth Gilbert (l.) and Rayya Elias (r.) in 2014. Gilbert announced on Wednesday that she is in love with her longtime best friend Elias.

(Noam Galai/Getty Images)

Gilbert rose to popularity with her 2006 novel "Eat, Pray, Love," which documented a woman's journey across Italy, India and Indonesia in search of love and spirituality. The book was eventually turned into a film starring Julia Roberts.

Elias is a Syrian-born American musician and filmmaker. She penned her own memoir n 2013, titled "Harley Loco: A Memoir of Hard Living, Hair, and Post-Punk, from the Middle East to the Lower East Side."