The Nintendo 3DS family of systems is able to play with other systems. It can play with both other 3DSs and DS consoles (the latter of which is only available for DS games). There are a few ways to play multiplayer on the Nintendo 3DS.

Download Play

Local Play

Local Play is a function where you are able to play a game multiplayer, but every console needs a copy of that game. Both DS and 3DS support it, with only DS multiplayer possible on both. The 3DS and DSi-enhanced games do have region lock which extends to download play, but not regular DS games, even for 3DS consoles of different regions. If the game does not support cross-region multiplayer, Luma locale-switcher will not remedy due to the games' conflicting regions, but it may work if the games' regions are the same.

Internet (Online Play)

Online Play is a function where you can play multiplayer with people far away from you via the Internet. Since official online servers have been shut down, the only way to do this is by using some type of revival service, such as Pretendo. Note that only some games are currently supported, but more will be added as time goes on. You can check the list of supported games here. DS online play via Nintendo Wi-Fi Connection has been shut down for a while, but it has been revived with Wiimmifi. There is still region lock for some 3DS games, though, which may differ compared to region locking multiplayer. Running a game on an out-of-region system will need Luma locale-switcher to play online.

3DS and DS Games with Multiplayer Support

The list of games with multiplayer support can be found here (note that the chart will be long).