Will Smith revealed a lot of personal memories in his new memoir — including his mom walking in on him having sex with his former girlfriend in the kitchen.

At the time of the incident, the “Fresh Prince of Bel-Air” star was only 16 years old and dating Melanie Parker. The pair first met in high school and Smith wrote in his book that he later fell “deeply and totally in love” with her.

One night, Smith’s mom walked in on her son and Parker having sex in the kitchen. She “flipped the light switch as she had done tens of thousands of times before. But this time, her eyes landed upon her eldest son and his girlfriend deep in throes of reckless lovemaking,” he wrote in his new memoir titled “Will.”

The I Am Legend actor continued, “As a teenager, outside of physical injury, you cannot feel worse than having your mother catch you and your girlfriend doggy-style on her kitchen floor.”

After seeing her son and his girlfriend have sex in her kitchen, Smith’s mom promptly went back to her bedroom. Parker, who was living with Smith and his family after her mother went to jail, was sent to live with her aunt. She and the Suicide Squad actor promised his parents that they would not have sex while she was living there. That rule was broken three months into her moving in.

“I’m still not exactly sure why I did what I did that night,” Smith wrote. “To this day, I have no idea what I was thinking. Of all the experiences I am sharing in this book, this is the individual moment of personal behavior that makes the least sense to me.”

The pair continued dating after the incident. However, their relationship ended when Smith learned that Parker cheated on him.