To provide a package for an optical semiconductor having a light-emitting device and a light-receiving device in one package, in which a groove is provided between the light-emitting device and the light-receiving device to thereby avoid rays of light from the light-emitting device to directly enter the light-receiving device.