There was a beginning, the Big Bang, contemporary science agrees on that. Space and time were created at that very moment, there was no such thing as space and time before (there might have been something else but we have no way of knowing). Outside that I've no idea