A straddle-type vehicle, comprising: a body frame; a body cover covering the body frame; a seat supported by the body frame; and an engine unit disposed so as to be capable of pivoting with respect to the body frame, and located under the seat, wherein the body frame includes: a left frame component extending in the front-to-rear direction of the vehicle; and a right frame component extending in the front-to-rear direction of the vehicle and located to the right of the left frame component in the left and right direction of the vehicle, the left frame component and the right frame component each include: a lower frame component (30B; 32B) extending in the front-to-rear direction, ahead of the engine unit; and an inclined frame component (30C; 32C) extending rearward and upward from a rear end of the lower frame component (30B; 32B), the body cover includes a foot rest component (44B; 46B) located lower than the seat, the engine unit comprises: a cylinder; and a valve (62A; 62B) for opening and closing an intake passage or exhaust passage formed in the cylinder; characterized by at least part of the foot rest component (44B; 46B) being superposed with the lower frame component (30B; 32B) in a plan view of the vehicle, and the engine unit further comprising: a variable valve mechanism for switching the amount of displacement of the valve (62A; 62B), wherein the variable valve mechanism includes a solenoid disposed between the cylinder and either the left frame component or the right frame component in a plan view of the vehicle, and having an output shaft capable of moving in a reciprocating manner in the left and right direction of the vehicle, and the solenoid superposed with the inclined frame component (30C; 32C) of either the left frame component or the right frame component in a side view of the vehicle, within the pivoting range of the engine unit. a body frame; a body cover covering the body frame; a seat supported by the body frame; and an engine unit disposed so as to be capable of pivoting with respect to the body frame, and located under the seat, wherein the body frame includes: a left frame component extending in the front-to-rear direction of the vehicle; and a right frame component extending in the front-to-rear direction of the vehicle and located to the right of the left frame component in the left and right direction of the vehicle, a left frame component extending in the front-to-rear direction of the vehicle; and a right frame component extending in the front-to-rear direction of the vehicle and located to the right of the left frame component in the left and right direction of the vehicle, the left frame component and the right frame component each include: a lower frame component (30B; 32B) extending in the front-to-rear direction, ahead of the engine unit; and an inclined frame component (30C; 32C) extending rearward and upward from a rear end of the lower frame component (30B; 32B), a lower frame component (30B; 32B) extending in the front-to-rear direction, ahead of the engine unit; and an inclined frame component (30C; 32C) extending rearward and upward from a rear end of the lower frame component (30B; 32B), the body cover includes a foot rest component (44B; 46B) located lower than the seat, the engine unit comprises: a cylinder; and a valve (62A; 62B) for opening and closing an intake passage or exhaust passage formed in the cylinder; a cylinder; and a valve (62A; 62B) for opening and closing an intake passage or exhaust passage formed in the cylinder; a variable valve mechanism for switching the amount of displacement of the valve (62A; 62B), wherein the variable valve mechanism includes a solenoid disposed between the cylinder and either the left frame component or the right frame component in a plan view of the vehicle, and having an output shaft capable of moving in a reciprocating manner in the left and right direction of the vehicle, and the solenoid superposed with the inclined frame component (30C; 32C) of either the left frame component or the right frame component in a side view of the vehicle, within the pivoting range of the engine unit.