In an oil separator for separating oil from a fluid flow with a labyrinth-like flow guide which is formed essentially by baffle walls, at least one of the baffle walls in at least one partial area can be deformed in a manner similar to rubber.