Compliance with the medication regimen in treatment trials for alcoholism appears to be a key determinant of treatment outcome. However, there is no consensus as to the best method to assess medication compliance. This study examines the feasibility of using ultraviolet light detection of a urinary riboflavin tracer to determine compliance with medication therapy. Six sets of urine specimens (with n ranging from 15 to 38) were rated independently by two judges. Test-retest reliability was high: 90 and 95% agreement for two judges. Inter-rater reliability ranged from 73 to 95% agreement between judges (mean = 88%), with correspondence kappa values ranging from 0.46 to 0.85 (mean = 0.69). Diaries, capsule counts, and spectrofluorimetric data were used to validate judges' ratings in four trials, including one in which subjects were alcohol-dependent participants in one of three pharmacotherapy trials. Rating accuracy was influenced by dosage, time interval between ingestion and urine collection, and previous dosing. Overall, ratings tended to be accurate, with incorrect judgments limited to specimens with low concentrations of urinary riboflavin. The results indicate that ultraviolet light detection of urinary riboflavin is a useful method for the assessment of patient compliance with medication regimens, including compliance of patients assigned to receive placebo in clinical trials of medications for alcoholism treatment.