A system for retaining a magnet in a cochlear implant, comprising a retainer embedded within an encapsulant of the cochlear implant, and a magnet case engaged with the retainer. A retainer for retaining a magnet within a cochlear implant comprising a number of first fasteners that couple with a number of corresponding second fasteners of a magnet case hermetically sealing the magnet, and a number of supports embedded within an encapsulant of the cochlear implant.