Study Design: Consenting eligible inmates at Rikers Island in New York City will be randomly assigned to buprenorphine or methadone maintenance in jail and will be referred to a corresponding community treatment upon their release. Subjects will be followed-up at 3 months after release from jail.