Ranibizumab is given as an intravitreal injection, directly into the eye. The procedure is typically painless as anesthetic drops are applied beforehand.