A method of manufacturing an optical semiconductor device includes preparing an optical semiconductor provided on a distal end of a first lead portion of a lead frame and connected electrically with a distal end of a second lead portion of the lead frame, forming thermoplastic resin