Physicochemical characteristics of biochar and its sorption potential for oxytetracycline (OTC) were investigated. Biochars from pineapple peel waste were produced via pyrolysis under oxygen-depleted conditions at 350 °C (BL350), 500 °C (BL500), and 650 °C (BL650), as well as the characteristics and polycyclic aromatic hydrocarbons contents of the samples were compared. The sorption kinetics of OTC onto the biochars was completed in three stages, i.e., a fast stage, a slow stage, and an equilibrium stage after 24 h. The kinetics data were perfectly fitted by the pseudo-second-order model with high correlation coefficients (R2 > 0.999). All of the sorption isotherms were nonlinear and well described by the Langmuir model. The Langmuir maximum sorption capacity (qmax) increased in the order of BL650 > BL500 > BL350. The thermodynamic parameters revealed that the sorption of OTC onto the biochars was spontaneous and endothermic. Fourier transform infrared spectroscopy (FTIR) of the biochars before and after sorption of OTC confirmed that the H-bonding interaction was the dominant sorption mechanism. The results demonstrated that biochars obtained from inexpensive and renewable materials could be utilized as a highly effective and environmentally friendly adsorbent for removing organic contaminants from wastewater.