---
title: "Access system items"
slug: "access-system-items"
abstract: "How to access system items using the Sitecore.ItemID class."
---
# Access system items

You can use members of the `Sitecore.ItemID` class to access system items without hard-coding paths. For example, to access the */Sitecore/Media Library* item in the *Master* database:

```

Sitecore.Data.Database master = Sitecore.Configuration.Factory.GetDatabase("master");

Sitecore.Data.Items.Item mediaRoot = master.GetItem(Sitecore.ItemIDs.MediaLibraryRoot);

```