Ivan Kőszegi (Hungarian: Kőszegi Iván, German: Yban von Güns; died 5 April 1308) was an influential lord in the Kingdom of Hungary at the turn of the 13th and 14th centuries. Earlier historiographical works also refer to him Ivan Németújvári (Hungarian: Németújvári Iván, German: Ivan von Güssing, Croatian: Ivan Gisingovac). He was Palatine in 1281, between 1287 and 1288, and from 1302 until 1307, Ban of Slavonia in 1275, from 1284 until 1285 and in 1290, and Master of the treasury in 1276 and 1291.