An electric junction box includes a housing configured to accommodate an electronic component, and a lid portion attached to the housing so as to cover an opening of the housing. An electric wire connected to the electronic component is routed between the electronic component and the lid portion. The housing includes a fixing member fixing the electric wire. The fixing member has a face intersecting with an attachment direction of the lid portion and fixes the electric wire to the face.