Zachary Quinto's got a brand-new gig.

The "Star Trek" actor will guest star on the upcoming fourth season of HBO's hit "Girls," E! News reported on Thursday.

The 37-year-old was seen filming alongside "Girls" star and creator Lena Dunham this week in Bushwick.

The season is set to debut in early 2015.