A namespace groups classes under a prefix to avoid name conflicts, for example App\Service. You declare it with namespace at the top of the file, and use imports a class from another namespace. It generally follows the folder tree.
Example
namespace App\Service;
use App\Model\User;