The Russian tsar was defeated by the Polish army during the Moscow war and became the prisoner of the Polish king.