8:42 AM PT -- Cops tell TMZ Sports ... Williams admitted he "gained access to the garage by making a copy of the resident’s garage door opener using a universal garage door opener."
Cops added, "Williams was arrested on a misdemeanor charge of criminal trespass and booked into the Harris County Jail without further incident. Williams was released from jail after posting a $100 bond."
8:23 AM PT -- TMZ Sports has obtained footage of the moment Mario Williams was confronted by the mother of his child inside of her Houston apartment ... and the standoff is intense.
We're told 34-year-old Williams had been banging on the front door of the apartment and the woman refused to let him in. So, he used a garage door opener that he allegedly made without her permission to gain entry.
Our footage shows the moment the woman confronts Williams at her garage entry door -- in which a very heated Williams accuses her of using their child's iPad to gain access to the contents of his iCloud ... allegations she adamantly denies.
The woman repeatedly demands that Williams get out of her home -- saying, "How did you get in here?"
A rambling Williams claims a law enforcement officer opened the garage for him.
As the two continue to argue, Williams calls 911 to report the woman for the alleged iCloud break-in ... while she continues to yell at him to leave her home. Mario describes the woman to police as "my, I guess, ex-girlfriend."
Eventually, a law enforcement officer at the scene intervenes -- telling Mario, "I know who you are."
We're told the woman had a relationship with Mario for years -- but they've been separated for months ... and clearly, things are not going well between them. She claims this latest incident has become par for the course.
We're told Williams was cooperative with police. He's due back in court later this month.
6:47 AM PT -- TMZ Sports has confirmed the woman in the incident has a child with Williams. Unclear if the two are still in a relationship or if they've broken up.
Mario Williams -- the #1 overall pick in the 2006 NFL Draft -- was arrested for trespassing Tuesday after an incident at a woman's home in Houston, TMZ Sports has confirmed.
The 34-year-old defensive end -- who hasn't played in the NFL since 2016 -- was allegedly inside of the home without permission.
Sources connected to the incident tell us Williams "broke into the home and began yelling at" the woman who lives there. We're told the woman was extremely emotional and screamed at him to get out.
Cops were called to the scene and Williams was arrested and taken to a nearby jail where he was booked for trespassing. Bond was set at $100, which Williams has already paid. He's now out of custody according to official records.
Court records show Williams is listed at 6'7", 290 lbs.
Records show Williams has been ordered to undergo a mental health or intellectual disability assessment. According to the KHOU.com, the woman has previously filed a restraining order against Mario.
Williams is due back in court August 27.
Williams was a beast in the NFL -- making the Pro Bowl in 4 different seasons, along with 3 All Pro Teams.
After being signed with the #1 pick -- over Reggie Bush -- he signed a 6-year, $54 million rookie contract. After that, he famously signed a massive $100 million contract in 2012 with the Buffalo Bills -- with $25 million guaranteed. He last played with the Miami Dolphins in 2016.