Drive for a door or a window, comprising a housing with a longitudinal axis (L), an output shaft which is mounted rotatably in the housing , an actuating piston which can be adjusted in the housing in a linear manner along the longitudinal axis (L) between a first position and a second position, divides the interior space of the housing into a first space and a second space , and is coupled to the output shaft , in order to convert a movement of the actuating piston into a rotational movement of the drive shaft , and a spring force accumulator , in particular a spiral compression spring, which is arranged in the second space and is preloaded, in particular compressed, in the case of an adjustment of the actuating piston into the second position, characterized in that a swash plate pump is provided to move the actuating piston ; wherein the swash plate pump has: a pump housing which is received partially or completely in the housing and is arranged in the housing in a fixed manner, at least one pump piston , wherein the pump piston is mounted such that it can be moved in a linear manner in the pump housing along the longitudinal axis (L) between a retracted position and an extended position, a swash plate which can be driven rotatably about a rotational axis (D) for actuating the pump piston , wherein the swash plate has a pump piston adjusting surface which is oriented obliquely with respect to the rotational axis (D) of the swash plate , and a drive motor for driving the swash plate . an output shaft which is mounted rotatably in the housing , an actuating piston which can be adjusted in the housing in a linear manner along the longitudinal axis (L) between a first position and a second position, divides the interior space of the housing into a first space and a second space , and is coupled to the output shaft , in order to convert a movement of the actuating piston into a rotational movement of the drive shaft , and a spring force accumulator , in particular a spiral compression spring, which is arranged in the second space and is preloaded, in particular compressed, in the case of an adjustment of the actuating piston into the second position, characterized in that a swash plate pump is provided to move the actuating piston ; wherein the swash plate pump has: a pump housing which is received partially or completely in the housing and is arranged in the housing in a fixed manner, at least one pump piston , wherein the pump piston is mounted such that it can be moved in a linear manner in the pump housing along the longitudinal axis (L) between a retracted position and an extended position, a swash plate which can be driven rotatably about a rotational axis (D) for actuating the pump piston , wherein the swash plate has a pump piston adjusting surface which is oriented obliquely with respect to the rotational axis (D) of the swash plate , and a drive motor for driving the swash plate . a pump housing which is received partially or completely in the housing and is arranged in the housing in a fixed manner, at least one pump piston , wherein the pump piston is mounted such that it can be moved in a linear manner in the pump housing along the longitudinal axis (L) between a retracted position and an extended position, a swash plate which can be driven rotatably about a rotational axis (D) for actuating the pump piston , wherein the swash plate has a pump piston adjusting surface which is oriented obliquely with respect to the rotational axis (D) of the swash plate , and a drive motor for driving the swash plate . <EOS>