A trained soldier, he fought for the American colonists during the War of American Independence, returning to Poland in 1784. Ten years later he led a nationalist uprising, defeating a large Russian force at Racławice. Captured and imprisoned by the Russians (1794–96), he eventually moved to France, where he devoted the rest of his life to the cause of Polish independence.