A capsule medical apparatus includes: a casing having a capsule shape; first and second boards in at least one of which an imaging element is provided and which are connected by a flexible board; a first board retaining member that retains the first board; a second board retaining member that retains the second board; and a battery arranged between the first and the second board retaining members. The first and the second board retaining members and the battery are housed in an inside of the casing in a state where the battery is put between the first and the second board retaining members which retain the first and the second boards, respectively. A groove part in which the flexible board is arranged is formed on an inner wall of the casing.