OAKLAND — An East Bay resident who was busted after federal agents took screenshots of his Instagram posts advertising Xanax, pot and guns received a prison sentence of 63 months Friday morning, prosecutors say.

Marcos Anthony Hatch, 21, pleaded guilty in December to dealing firearms without a license, possessing Xanax for sale and felony gun possession, court records show. He was arrested after an unrelated drug trafficking investigation in Discovery Bay led federal agents to Hatch’s account, “triggerplayornoplay.”

Agents took more than 20 screenshots advertising drugs. When they raided his home, they seized numerous guns, including an AK-47 in Hatch’s bedroom, authorities said. They found small amounts of various drugs, clear plastic baggies, scales and other evidence of drug sales, according to the DEA.

Federal prosecutors asked for Hatch to receive a 70-sentence. Defense lawyers argued for no more than 40 months, saying Hatch maintained steady work after his arrest and had just a single misdemeanor conviction on his record.

Prosecutors wrote in a sentencing memo that Hatch was, in some ways, “a typical 21-year-old.”

“Raised in the social media era, he aspires to quick fame and easy money. Image is everything,” Assistant U.S. Attorney Katherine Wawrzyniak wrote. “He is quick to adopt the trappings of full adulthood without fully embracing its responsibilities. That attitude was on full display on his Instagram in 2017, which is what first brought him to law enforcement’s attention.”

The defense memo, written by attorney Harris Taback, ended with a plea for leniency.

“Hatch is on a journey toward rivers of redemption that exist on this Earth and the beginning of the journey was his guilty pleas,” Taback wrote, later adding, “A sentence of not greater than 40 months is a reasonable part of the journey.”