If you use the BBC iPlayer to watch TV programmes at the same time as they are being shown on TV (live) then you will need to be covered by a valid TV Licence. You can buy a TV Licence online.
If you use the BBC iPlayer to watch BBC programmes after they have been broadcast either to download or via streaming on demand then you will not need a TV Licence.