Knightley was only seventeen years old when she starred in the first Pirates of the Caribbean, and twenty-one years old when the sequel came out.