One appliance and crew from Langley, two from Slough and one from Gerrards Cross, along with an officer attended.
The firefighters used cutters and small gear to release a man who had become stuck.
The man was passed into the care of South Central Ambulance Service.
Thames Valley Police also attended.