Former NBA player Jeremy Lin revealed Wednesday that he has been married for two years.

"After many years of being together, I married my wife in an intimate ceremony and it's been the highlight of my life ever since. Finally sharing this beautiful day from over a couple [of] years ago," the 34-year-old Taiwanese-American, who last played for China's Guangzhou Loong Lions, wrote in a Facebook post.

Explaining why he kept the union with his unnamed partner private for so long, Lin wrote, "I always knew that when I got married I'd want to keep my personal life sacred and to myself for as long as I could."

"The funny thing about becoming famous overnight is no one teaches you how to deal with it... While I still feel strongly about guarding aspects of my personal life, it has also been hard for people to not know about such a major change," the California native said in the post that featured a photo from his wedding day.

Lin officially started his NBA career when he signed with his hometown team Golden State Warriors back in 2010, but he was only catapulted to fame by his performance as a point guard with the New York Knicks during the 2012 playoffs.

The hype surrounding Lin's rise was later referred to as "Linsanity," which ended up being recognized as part of the English language.

This craze started when Lin scored 38 points against the Los Angeles Lakers during the 2011-12 season, according to the Bleacher Report.

Lin ended up outscoring the late NBA legend Kobe Bryant by four points that match, and he was attributed with helping the Knicks achieve a seven-game winning streak in the season.

"It was a tornado of emotion because there's so much that was happening. I didn't even know what to feel like," Lin said of the attention he received, according to a report by The New York Times.

After winning an NBA championship with the Toronto Raptors in 2019, Lin became a free agent and started playing in the Chinese Basketball Association (CBA).

At the time, Lin described feeling like the NBA had moved on from him.

"[A]fter playing nine years in the league, I would expect like, okay, I have a reputation, people know what I can do. But I was pretty surprised at just how fast people were like, 'Okay, he's done,'" Lin said during an interview with Insider.

Lin, who has since left the CBA and is set to return to the United States to "rest and reset," believes race was a factor in his falling out of the NBA.

"When I add all of that up, I would say race has a role to play in that. I just don't know how big. But, you know, my gut is that race definitely has a role to play," he said.