A vehicle has a door frame and a vehicle door assigned to the door frame, which door frame has a security compartment for holding valuables. The security compartment has a security compartment opening in the door frame. The vehicle door is movable between a closed first state and an open second state, wherein the security compartment is covered by the vehicle door in the first state, and wherein the security compartment is accessible via the door frame in the second state.