Local namespaces are created within a function when that function is called. Global namespaces are created when the program starts.