Matthew (II) from the kindred Csák (; ; ; c. 1235 – 1283 or 1284) was a powerful Hungarian baron, landowner and military leader, who held several secular positions during the reign of kings Béla IV, Stephen V and Ladislaus IV. He was the first notable member of the Trencsén branch of the gens ("clan") Csák. His nephew and heir was the oligarch Matthew III Csák, who, based on his uncles' acquisitions, became the de facto ruler of his domain independently of the king and usurped royal prerogatives on his territories.

Family He was born around 1235 as one of the four sons of Matthew I, founder and first member of the Trencsén branch, who served as master of the treasury (1242–1245), and Margaret from an unidentified noble family.Markó 2006, p. 219. Matthew II's brothers were Mark I, ispán (comes) of Hont County in 1247, but there is no further information about him; Stephen I, master of the stewards from 1275 to 1276 and from 1276 to 1279; and Peter I, who held powerful positions, including palatine (1275–1276; 1277; 1278; 1281) and who, furthermore, was the father of the notorious Matthew III.Kristó 1986, p. 31. He had also a younger sister, who married to the Moravian noble Zdislav Sternberg, a loyal bannerman of the Csák clan.Kristó 1986, p. 50. Their son, Stephen Sternberg (or "the Bohemian") later inherited the Csák dominion because of the absence of a direct adult male descendant after the death of Matthew III in 1321.Kristó 1986, p. 199.

Matthew II married to an unknown noblewoman from an unidentified genus. This marriage produced an unidentified daughter, who was born in 1263 with lameness and withered arm. According to a 1276 testimony of Matthew's mother, lady Margaret, who was nun at the Dominican monastery at the 'Rabbits' Island by that time, Matthew brought his eight-year-old daughter to the monastery in 1271 and asked his mother to intercede with the recently deceased Saint Margaret, and his hopes where fulfilled, as the girl was cured aſter being placed next to the saint's tomb. This testimony was part of the investigations of saint Margaret's canonization procedure in 1276.Csepregi et al. 2008, pp. 365–369.

Matthew died without male descendants and his brothers had already died for that time, as a result, in 1283, he nominated his nephew, Matthew III to inherit his property and large-scale possessions,Fügedi 1986, p. 159. which laid the foundation of a de facto independent domain, encompassing the north-western counties of the kingdom (today roughly the western half of present-day Slovakia and parts of Northern Hungary).Engel 2001, p. 126.

Career His name was first mentioned by an authentic royal charter on 13 June 1270, when he served as voivode of Transylvania (1270–1272), which indicates Matthew II reached influence only after the death of king Béla IV, thus he was a loyal supporter of duke Stephen, who rebelled against his father's rule and took over the government of Transylvania in the 1260s. During the civil war between Béla IV and his son Stephen, Peter and Matthew Csák were entrusted with gathering a small contingent and marching into Northeast Hungary to rescue the younger king's family. Later, in January 1265, they returned from Upper Hungary to Transylvania, where they collected and reorganised the younger king's army and persuaded the Saxons to return to Stephen's allegiance. The battle took place along the wall of Feketehalom, where Stephen was surrounded, between the two armies at the end of January, while Duke Stephen led his remaining garrison out of the fort. The royalist troops were defeated soundly. According to a charter issued in 1273, Matthew II participated in the Battle of Isaszeg in March 1265, where Stephen gained a strategic victory over his father's army.Kristó 1986, p. 45. After that Béla IV was forced to accept the authority of Stephen in the eastern parts of the kingdom. On 23 March 1266, father and son confirmed the peace in the Convent of the Blessed Virgin on 'Rabbits' Island.Fügedi 1986, p. 150. The Transylvanian voivodeship and the income of Szolnok County were Matthew's reward when Stephen V ascended the throne in 1270. He took part in a military campaign against Ottokar II of Bohemia in 1271.Kristó 1986, p. 34. Alongside his brother Peter Csák and Nicholas Baksa, Matthew led an army to the river Moson to prevent the invading Czechs from crossing, but the troops of Ottokar II routed their army at Mosonmagyaróvár on 15 May 1271. Nevertheless, Stephen V won a decisive battle over the Bohemians. Matthew and Peter were among those barons, who ratified the peace of Pressburg in July 1271.Rudolf 2023, pp. 266, 276. Matthew held the voivodeship until the sudden death of Stephen V in August 1272, after that he was replaced by Nicholas Geregye, a former supporter of Béla IV.Engel 2001, p. 382. Only a validly assumed non-authentic charter refers to Matthew II as voivode in April 1273.Zsoldos 2011, p. 38.

During the time when tensions emerged between Béla IV and his son, Stephen, two rival baronial groups developed, one of them was led by Henry I Kőszegi ("Henry the Great"), also involving the Gutkeled and Geregye clans, while the Trencsén branch of the Csák clan dominated the second group. Following the coronation of Stephen V in 1270, leaders of Béla IV's party fled to abroad from the potential retaliations, however they returned to Hungary, when the crown passed to the minor Ladislaus IV in August 1272. During the nominal regency of queen Elizabeth the Cuman both sides wished to take part in the exercise of power. The rivalry between the two parties characterized the following years.Engel 2001, p. 108. According to historian Bálint Hóman, twelve "changes of government" took place in the first five regnal years of Ladislaus IV.Fügedi 1986, p. 153. This kind of "political pendulum" is well illustrated by the fact that Matthew II functioned as ban of Slavonia from 27 November 1272 to April 1273, replacing the rival Joachim Gutkeled. However, he too has been replaced by a rival, Henry I Kőszegi.Kristó 1986, p. 36. After that Matthew II served as judge royal and ispán of Bánya (Árkibánya) ispánate within Nyitra County in the summer of 1273.Zsoldos 2011, p. 32. Soon, however, he was ignored again, because Nicholas II Gutkeled from the opposite group replaced him as judge royal. In the next year, Matthew II regained his political influence in the court, when he was appointed voivode of Transylvania in 1274 and held that office until the following year with a small interruption, when Nicholas Geregye retook the position for several months. Between 1275 and 1276, he became master of the treasury, besides that he also functioned as ispán of Pozsony, Baranya Counties and Bánya ispánate.Zsoldos 2011, p. 63. In 1276, he served as voivode for the fourth time, replacing his distant relative, Ugrin Csák.

Matthew II remained partisan of the king at all times, in accordance with the Csák tradition. In contrast, the Kőszegi family gradually manifested its disloyalty to the Árpád dynasty, first of all, when Henry the Great returned to Hungary from exile in Bohemia in 1272, assassinated Béla of Macsó, a grandson of the late Béla IV and partitioned the territory of the Duchy of Macsó among the barons. In 1274, he and Joachim Gutkeled captured and imprisoned the child Ladislaus IV himself and after the release of the royal, they also thrown into prison the king's younger brother, prince Andrew weeks later. In August 1274, an armed conflict broke out between the two baronial groups. Meanwhile, Matthew II fought against Ottokar II of Bohemia in early 1273 at Styria and Carinthia, who also laid claim to the title king of Germany.Kristó 1986, p. 37. He led that army, consisted of several barons, into the region, which plundered these region for a month. Matthew's troops besieged Fürstenfeld and a certain fort Lastruch. Following that Matthew led his army against Carinthia, while Ivan Kőszegi plundered Styria.Rudolf 2023, pp. 288–290. These incursions prompted Ottokar II to launch a large-scale invasion against Hungary in the spring of 1273. As a result, the rival barons, including Matthew, formed a unity coalition against the invading Bohemians, putting aside their differences against each other.Rudolf 2023, p. 300. Despite the earlier conflicts, the Csáks were temporarily considered supporters of reconciliation with Ottokar II in 1275, for domestic political reasons, in order to counterbalance the efforts of Joachim Gutkeled and the Kőszegis.Rudolf 2023, p. 327. Matthew was one of the two commanders (the other one was his brother, Stephen Csák) of the Hungarian army in the Battle on the Marchfeld on 26 August 1278, where Ottokar II was killed. Matthew's army consisted of approximately 2,000 Hungarian and 5,000 Cuman warriors of light cavalry. Despite Ladislaus' presence, Matthew was the commander of the entire Hungarian contingent in effect, alongside his brother Stephen Csák, according to the Steirische Reimchronik ("Styrian Rhyming Chronicle").Rudolf 2023, pp. 365, 368–369. Matthew's bravery and heroism during the battle had been documented by German chronicles.

After his last voivodeship (1276), he held only local head functions in the next two years; he was ispán of Moson (1277–1278), Sopron (1277–1279) and Vas (1277) Counties.Zsoldos 2011, p. 329. However, soon, his political career reached the top, when he was appointed palatine of Hungary in December 1278, succeeding his brother, Peter I in that position. Besides that he also became judge of the Cuman people, ispán of Bánya ispánate and Somogy County. In this capacity, Ladislaus IV entrusted him to restore of public safety in the realm. As palatine, Matthew made a proactive role in the conclusion of peace between the Gutkeleds and the Slavonian Babonić family after a series of border wars. According to a royal charter he provided "truth" in the name of the king at Sopron in February 1279, when he ordered the execution of a town's citizen, Peter. Later Ladislaus IV donated Peter's lands to Denis Osl, who formerly saved the life of Matthew II in the Battle on the Marchfeld. This fact clearly indicates that Matthew II, like the other contemporary lords, put his own follower in a stronger position, abusing his office. He also started to establish a so-called "private army" with the participation of his royal servants. Several charters preserved, some landowners have complained to the king concern that the palatine harassed and plundered their possessions.Kristó 1986, p. 38.