Two appliances and crews from West Ashland attended, along with an officer.
One man was out of a car and being cared for by South Central Ambulance Service when they arrived.
The firefighters used hydraulic rescue equipment and small gear to release a second man who was also cared for by the ambulance service.