After two years of dating, Jennifer Lopez and Alex Rodriguez are officially swinging for the fences together -- the couple is engaged.

Broadimage/REX/Shutterstock

The baseball legend popped the question to the singer-actress while on a beach vacation together, the couple revealed on Instagram on March 9. Jennifer posted a photo of Alex holding her hand, revealing a stunning (and enormous) emerald-cut diamond ring. She captioned it with eight little hearts. A-Rod posted the same photo, captioning his, "she said yes ♥️."

The glamorous, in-love couple gushed about one another in sweet Instagram posts in early February to mark their two-year dating anniversary.

"You make my world a more beautiful safe and stable place ... in the midst of our ever-changing, ever moving life," J.Lo wrote in part, while Alex declared, "We are meant to be, and how much you mean to me cannot be put into words."

Broadimage/REX/Shutterstock

The pair began dating in early 2017 and quickly became inseparable. Just over a month into their romance, J.Lo was lending support to her beau at spring training baseball games, where he was a consultant for the New York Yankees. He became a regular presence at her Las Vegas residency show and on the set of her drama "Shades of Blue." They also took a private excursion to the Bahamas together.

Quickly, the two also met each other's families. In fact, just before the Christmas holidays, a source told People magazine that Jennifer and Alex's kids -- who spent Thanksgiving 2017 together with their in-love parents -- were hoping the two would make it official.

It took longer than some expected, but they did it.

Andrew H. Walker/Variety/REX/Shutterstock

The two never shied away from talking about one another even early on in their romance.

"I'm in a good relationship. I feel like I can say that for the first time -- I don't know -- maybe ever," J.Lo told Hola! USA in September 2017. "And not that I didn't have great relationships, full of love and adventure, but this is the first relationship I've been where I feel like we really make each other better. We complement each other, and there's really pure, true love. Just wanting to support the other person and make them happy."

Matt Baron/REX/Shutterstock

She also indicated that one of the things she finds so attractive about A-Rod is his relationship with his daughters, Natasha and Ella.

"He's a loving father. He's a generous human being with his family, with his friends, with me," she said. "He's caring and sweet and capable and responsible and just all the beautiful things you would want a man to be."

In September 2017, Alex spoke to "Extra" about how much his daughters look up to J.Lo. "There is not a better role model than Jennifer," he said. "My daughters, they look up to [her], being a Latina woman in this country, doing the things she has done and the way she pays it forward. If it doesn't help socially, she is not interested. I can't even keep up with her jobs. She's Superwoman, and my daughters, the way they look at her, she has been a great [inspiration] for them."

This will be J.Lo's fourth marriage and Alex's second.