The senate was established in 15th century, during forming of the Chamber of Deputies in the sejm as the representation of the nobles. In fact, senate was a transformed royal council, which constituted of high officials, appointed by the king.
Read more