In XVII century Portugal two friends change identities so one of them can escape an unwanted marriage to Beatriz.