Portugal regains its independence from Spain and João IV of Portugal becomes king.