Shortly thereafter, Mendez greeted Captain Kirk, Spock, and Doctor McCoy, after the USS Enterprise diverted to the starbase. Despite Captain Kirk insisting that they had received a subspace message from Captain Pike ordering them to travel to Starbase 11, Mendez maintained that the starbase had sent no such message, and informed them of Captain Pike's accident, revealing that, in the condition he was in, Pike could not have even asked for the message to be sent. It was soon discovered that the message had been falsified by Spock, who covertly transported Captain Pike to the Enterprise and then commandeered the ship, for the purpose of taking Pike to the planet Talos IV.
Mendez and Kirk pursued the Enterprise in a shuttlecraft, which was taken aboard when Spock realized that the shuttle would soon run out of oxygen if he did not. As traveling to Talos IV was illegal, Mendez and Kirk convened a court martial on Spock's actions, during which they learned about Pike and Spock's previous visit to that planet. It was eventually revealed to Kirk that Mendez's presence on the Enterprise was an illusion created by the Talosians, who felt that the fiction of a court martial would delay Kirk in regaining control of the ship before it reached Talos IV, and that Mendez had never actually left the starbase. Mendez later contacted the Enterprise, revealing that the Talosians had allowed him to be a witness to the evidence presented at the court martial and that, due to the extreme circumstances surrounding Spock's actions, the restriction against traveling to Talos IV had been temporarily lifted. (TOS: "The Menagerie, Part I", "The Menagerie, Part II")
Commodore Mendez was played by Malachi Throne.
The character's middle initial can be seen on paperwork visible in close-ups, and is spoken by Uhura at the end of Part II.
In the final draft script of "The Menagerie", Mendez was described as "a few years older than Kirk but still a virile, active man." His first two initials were scripted to be "D.I." rather than "J.I.".
The commodore was the second Star Trek role played by Malachi Throne, as he had previously provided the voice of The Keeper in "The Cage". His casting in the "The Menagerie" two-parter was fortuitous (or finagled) because there were several new lines written for The Keeper that he needed to record. Throne filmed his scenes as Mendez between Tuesday 11 October 1966 and Tuesday 18 October 1966 on Desilu Stages 9 and 10.
According to the novel Dwellers in the Crucible, his full name is Jose Iglesias de Mendez.