A weak cation-exchange monolithic column has been prepared in stainless steel tubing and used as the solid-phase extraction material in quantitative analysis of caffeine and theophylline in urine. Column switching, with water as mobile phase, was used for on-line cleaning and screening of human urine samples. Reversed-phase high-performance liquid chromatography was then performed on a C18 column with methanol–water 30:70 (v/v) as mobile phase at a flow rate of 0.5 mL min−1. Ultraviolet detection was performed at 274 nm. Good linear relationships were obtained between response and concentrations of caffeine and theophylline in the range 0.1–50 μg mL−1. Absolute recovery ranged from 77.4 to 82.3% and inter-day and intra-day relative standard deviations were less than 5%. The method was suitable for analysis of caffeine and theophylline in human urine, because it eliminated tedious pretreatment and enabled rapid, economic, repeatable, and effective assay of traces of the drugs in biological samples.