Rupert I of Legnica (Polish: Ruprecht I Legnicki) (27 March 1347 – by 12 January 1409) was a Duke of Legnica since 1364 until his death, and also regent over half of the Duchy of Głogów-Żagań during 1397–1401.
He was the eldest son of Wenceslaus I, Duke of Legnica, by his wife Anna, daughter of Casimir I, Duke of Cieszyn. He was born after eight years of childless marriage.
Rupert's father died in 1364, leaving him and his four siblings under the guardianship of his uncle Louis I the Fair. One year later, with his cousin Henry VIII with a Scar -Louis's son-, Rupert joined to the Emperor Charles IV's trip to be crowned King of Arles. Rupert visited then another French cities, including Avignon, where he obtained from the Pope Urban V the annulment of the excommunication over his late father.
In 1370 he participated in the Sejm Reich in Nuremberg, where for the first time, Rupert manifest his political views.
The regency of Louis I the Fair was longer: only in 1373 Rupert began his personal rule over Legnica. Despite the inclusion of his brother Wenceslaus II as a co-rule, Rupert maintain the full government over the Duchy, but always with the close cooperation of his uncle. Thanks to the pressure of Louis, Rupert signed an agreement with his younger brothers on 2 December 1372, under which they accepted not divided the Duchy of Legnica between them for the next ten years. The agreement was extended in subsequent years, and allowed Rupert to exercise full control over Legnica at expense of his younger brothers, who, although they are co-rulers, none of them had any real power.
In later years, Rupert was actively involved in the dynastic struggles over the Silesian inheritance. On 21 May 1379 was concluded a treaty between Rupert and King Wenceslaus IV, who stipulated that after Rupert's homage to Wenceslaus as his vassal, the King guaranteed his total possession over the inheritance of all the descendants of Bolesław III the Generous. Unfortunately, on 6 January 1383, Rupert had to give up his claims over the Duchies of Wroclaw, Schweidnitz and Jawor.