If you are stopped and questioned on suspicion of doing something wrong, or if the police think that you can help them with the investigation of an offence or suspected offence, the police have to follow rules called General Orders and abide by certain laws.
For more information, see the Police and You factsheet and the Complaints about Police factsheet.