Lin-Manuel Miranda is already a composer, a lyricist, an actor and an author. Now he’s going to be a bookseller.

Mr. Miranda and three of his “Hamilton” collaborators have purchased the Drama Book Shop, a century-old theater district purveyor of scripts, sheet music and other stage-related reading material.

The surprise move is an effort to sustain the store, which is a mainstay of New York’s theater scene — in 2011 it was recognized with a Tony honor for excellence — but has struggled to survive the brutal Times Square real estate market and recently announced that it was being forced to move from its current location.

The rescue plan is a joint venture between the “Hamilton” team and the city, which has pledged to find the store an affordable space in Midtown.