Toma / se toma

Why/when “se” is used? Does it change the meaning of the sentence in the example below? A link to some grammar explanation will do. Thanks.

  1. Miguel toma un café.
  2. Miguel se toma un café.