REDWOOD CITY (CBS SF) – Authorities have arrested a man suspected of an armed carjacking in Redwood City over the weekend.

Around midnight on Saturday, a driver and passenger were parked in front of an apartment building on the 1400 block of Marshall Street. While the driver went into the building, police said the suspect approached the waiting passenger with a gun.

READ MORE: Oakland To Spend $5.8 Million To Fill Vacant Police Officer Positions

The passenger got out of the vehicle and the suspect drove off heading southbound towards Chestnut Street.

Shortly after 2:45 a.m., police in neighboring Menlo Park found the vehicle on the 3600 block of Haven. Police said the suspect then fled on foot into a nearby homeless encampment.

READ MORE: Strome Scores as Rangers Beat Sharks 1-0

Officers from both agencies searched the camp and found the suspect hiding underneath a trailer.

The suspect, identified as 38-year-old Gerardo Santana, was booked into the San Mateo County Jail on suspicion of carjacking and criminal threats.

MORE NEWS: Omicron Variant Outbreak Reported In Alameda County Among People Already Vaccinated; Cases 'Mildly Symptomatic'

According to jail records, Gerardo is scheduled to appear in court Monday afternoon.