A brake device provided in a saddle riding type vehicle, comprising: a front wheel brake that causes braking force to act on a front wheel; a rear wheel brake that causes braking force to act on a rear wheel; a brake operation unit that operates said front wheel brake and said rear wheel brake using one operator; a lean angle detection sensor that detects a lean angle of a vehicle body of the saddle riding type vehicle; a detection result input portion (552, 725) provided with a detection result from said lean angle detection sensor as an input; a storage (551, 721) that stores a first relation that represents a relation between an operation amount of said brake operation unit and target braking force, and a second relation that represents a ratio of the braking force of said front wheel brake to said target braking force determined for each lean angle and/or a third relation that represents a ratio of the braking force of said rear wheel brake to said target braking force determined for each lean angle; a target braking force setter that sets target braking force based on the operation amount of said brake operation unit by referring to said first relation; a ratio setter that determines which second relation to refer to among the second relations stored in said storage (551, 721) from the detection result input to said detection result input portion (552, 725) and/or determines which third relation to refer to among the third relations stored in said storage (551, 721) from the detection result input to said detection result input portion (552, 725), and sets a ratio of the braking force of said front wheel brake and the braking force of said rear wheel brake based on the second relation and/or the third relation, wherein a relation represented by the following Expression: Target braking force = braking force of front wheel brake + braking force of rear wheel brake, is established between the target braking force and the braking force of the front wheel brake and the braking force of the rear wheel brake, and a braking force calculator that calculates braking force for said front wheel brake and braking force for said rear wheel brake based on the target braking force set by said target braking force setter and the ratio set by said ratio setter. a front wheel brake that causes braking force to act on a front wheel; a rear wheel brake that causes braking force to act on a rear wheel; a brake operation unit that operates said front wheel brake and said rear wheel brake using one operator; a lean angle detection sensor that detects a lean angle of a vehicle body of the saddle riding type vehicle; a detection result input portion (552, 725) provided with a detection result from said lean angle detection sensor as an input; a storage (551, 721) that stores a first relation that represents a relation between an operation amount of said brake operation unit and target braking force, and a second relation that represents a ratio of the braking force of said front wheel brake to said target braking force determined for each lean angle and/or a third relation that represents a ratio of the braking force of said rear wheel brake to said target braking force determined for each lean angle; a target braking force setter that sets target braking force based on the operation amount of said brake operation unit by referring to said first relation; a ratio setter that determines which second relation to refer to among the second relations stored in said storage (551, 721) from the detection result input to said detection result input portion (552, 725) and/or determines which third relation to refer to among the third relations stored in said storage (551, 721) from the detection result input to said detection result input portion (552, 725), and sets a ratio of the braking force of said front wheel brake and the braking force of said rear wheel brake based on the second relation and/or the third relation, wherein a relation represented by the following Expression: Target braking force = braking force of front wheel brake + braking force of rear wheel brake, is established between the target braking force and the braking force of the front wheel brake and the braking force of the rear wheel brake, and a braking force calculator that calculates braking force for said front wheel brake and braking force for said rear wheel brake based on the target braking force set by said target braking force setter and the ratio set by said ratio setter.