A pivoting device for pivoting of segments (4) which are pivotable relative toone another of a bearing construction (2), providing a bearing surface (3) fora mattress, a cushioning element or the like, of an item of furniture for sittingand/or lying on, in particular a bed. In order to produce a pivoting device whichrequires a comparatively small installation space while also having safe operation,the invention proposes a pivoting device which includes an electromotive drivedevice (13) which is arranged on the end face between two neighboring segments(4).