This one surprises a lot of people. Convert a film with three audio tracks and two subtitle tracks, and the output has one of each, or no subtitles at all.
Without -map, ffmpeg picks streams by itself: the best video stream, the best audio stream and one subtitle stream, if the output format can hold it. Everything else is dropped without a warning. Adding -map 0 says “take every stream from the first input”:
ffmpeg -i film.mkv -map 0 -c copy film-copy.mkv
With a file that has one video and two audio streams, the plain command writes two streams and the one with -map 0 writes all three.
You can also be selective. -map 0:v -map 0:a keeps all video and audio but no subtitles, and -map 0 -map -0:s:1 keeps everything except the second subtitle track. The minus in front removes a stream again.
The caveat comes with the container. MKV takes nearly anything, but MP4 can’t store most subtitle formats or attachments like fonts. With -map 0 into an MP4 you may get an error about a stream the muxer doesn’t support. Then I’d either drop those streams with a negative map or stay with MKV.
Further reading: ffmpeg documentation, FFmpeg wiki: Map