A federal judge on Tuesday ordered the rapper and entrepreneur Jay-Z to testify as part of a securities investigation into a company that paid him more than $200 million in 2007 for assets including some related to the Rocawear brand.

During months of back and forth in response to subpoenas, lawyers for Jay-Z sought to limit his testimony in the case. They said that he had been on tour when his testimony was first requested and that he was now preparing for another.

Last week, the Securities and Exchange Commission filed court papers asking that a judge order Jay-Z, whose actual name is Shawn Carter, to comply with a subpoena to testify. In their most recent response, the lawyers sought to limit any testimony to a single day. But the S.E.C. resisted limits, and the judge sided with its lawyers.

“I’m granting the S.E.C.’s application to enforce the subpoena,” Judge Paul G. Gardephe of Federal District Court in Manhattan, said in court Tuesday. “The testimony has been delayed for five months, and I do not intend to tolerate any further delay.”