In this article, we prove the transcendence of certain infinite sums and products by applying the subspace theorem. In particular, we extend the results of Hančl and Rucki [‘The transcendence of certain infinite series’, Rocky Mountain J. Math.35 (2005), 531–537].