The Supreme Court ruled Wednesday that police can conduct searches and seize evidence after arrests that sometimes violate state law.

The unanimous decision comes in a case from Portsmouth, Va., where city detectives seized crack cocaine from a motorist after arresting him for a traffic ticket offense.

David Lee Moore was pulled over for driving on a suspended license. The violation is a minor crime in Virginia and calls for police to issue a court summons and to let the driver go.

Instead, city detectives arrested Moore and prosecutors say that drugs taken from him in a subsequent search can be used against him as evidence.

"We reaffirm against a novel challenge what we have signaled for half a century," Justice Antonin Scalia wrote.

Scalia said that when officers have probable cause to believe a person has committed a crime in their presence, the Fourth Amendment permits them to make an arrest and to search the suspect in order to safeguard evidence and ensure their own safety.

Moore was convicted on a drug charge and sentenced to 3 1/2 years in prison.

The Virginia Supreme Court ruled that police should have released Moore and could not lawfully conduct a search.

State law, said the Virginia Supreme Court, restricted officers to issuing a ticket in exchange for a promise to appear later in court. Virginia courts dismissed the indictment against Moore.

Courts allow warrantless searches following arrests in order to disarm suspects and preserve evidence.

The Virginia attorney general said an arrest is constitutionally reasonable if the officers have probable cause to believe a suspect has committed a crime.

Moore argued that the Fourth Amendment permits a search only following a lawful state arrest.

The Bush administration and attorneys general from 18 states lined up in support of Virginia prosecutors.