The process by which a cell surrounds and engulfs substances.