delivered the opinion of the court:
Separate indictments were returned by the grand jury of Cook County which charged the defendant, Michael Machroli, with aggravated battery (Ill. Rev. Stat. 1965, chap. 38, par. 12 — 4) and unlawful possession of narcotics (Ill. Rev. Stat. 1965, chap. 38, par. 22 — 3). He waived a jury trial, the two indictments were consolidated, and after a trial before the court he was found guilty on each indictment. He was sentenced to imprisonment for not less than one nor more than five years on each of two counts of aggravated battery, and to imprisonment for not less than five nor more than seven years for unlawful possession of narcotics. All three sentences run concurrently. Upon the defendant’s appeal, the appellate court for the first district affirmed all three convictions. (100 Ill. App. 2d 227.) We granted leave to appeal.
In this court the defendant challenges only his conviction for unlawful possession of narcotics. His contention is that his motion to suppress was erroneously denied and that the evidence upon which he was convicted was obtained through an unlawful search and seizure. In our opinion this contention must be sustained.
The defendant was arrested by a police officer who responded to a call which reported a domestic disturbance *224in the apartment in which the defendant was living with a widow and her two daughters, two and five years of age. When the officer arrived the defendant was lying on the floor of the bedroom where he had been thrown by the widow’s cousin. He was dressed in a tee shirt and shorts, and after the officer had questioned the defendant and others who were present, he placed the defendant under arrest and ordered him to get dressed. His clothes were not in the bedroom; the widow handed them to the arresting officer, who in turn handed them to the defendant. The officer testified that he saw the defendant remove a small white box from the pocket of his trousers as he was putting them on and place the box on a dresser. He testified that he had not searched the trousers, although he did search the pockets of the defendant’s jacket before he handed that to him.
After the defendant had left the bedroom, the officer entered, picked up the box, opened it, and discovered that it contained three white tablets. At that time he did not know whether they were aspirin or what they were. He did not suspect that they were any kind of narcotics. The officer further testified that in response to his question the defendant said that the pills were his. There was no further conversation about the pills at that time, and the defendant was not charged with unlawful possession of narcotics until four days later, after chemical analysis of the pills had identified them as a narcotic drug commonly known as “dolophine or methodan”. The defendant testified that the pills had never been in the pocket of his trousers, that they did not belong to him, that he did not know what they were, and that he had never stated that they were his.
The State seeks to justify the search upon the ground that the box containing the three pills was in plain view when the officer seized and opened it, that no search occurred, and the action of the officer was therefore reasonable. We cannot accept this contention. A search incident *225to an arrest is authorized when it is reasonably necessary to protect the arresting officer from attack, to prevent escape, or to discover the fruits of the crime. People v. Burnett, 20 Ill.2d 624; Chimel v. California, 395 U.S. 752, 23 L. Ed. 2d 685.
The box and its contents were in no way related to the offense for which the defendant was arrested. If we accept the officer’s testimony that he did not search the defendant’s trousers before handing them to him, it is clear that he was not concerned about the necessity of protecting himself from attack or that he feared an attempt to escape. If the testimony of the defendant is accepted, the officer had already searched the trousers and the box containing the three pills was not in them. In either event, we see no justification other than curiosity for the officer’s conduct in entering the bedroom after the defendant had left it and taking possession of the box. People v. Tate, 38 Ill.2d 184.
We hold, therefore, that nothing in the situation which confronted the officer justified him in seizing the box. It was therefore error to deny the defendant’s motion to suppress the contents of the box as evidence, and the conviction of unlawful possession of narcotics must be reversed.
Judgment reversed.
Mr. Justice Ward took no part in the consideration or decision of this case.