They say the masked men barged into a home on Wilkins Drive in Chapel Hill around 9:30 p.m. and shot a man in the leg.
The man was taken to the hospital with non life-threatening injuries. Other people were reportedly in the home, but no one else was hurt.
Witnesses say the gunmen got away in a beige Ford Taurus.
The Orange County Sheriff's Office and Chapel Hill police are investigating.